<template>
  <div>
    <p>我是孩子vue2:姓名是：{{ name }}</p>
  </div>
</template>

<script>
export default {
  props: {
    name: {
      type: String,
      default: "李四",
    },
  },
};
</script>

<style scoped></style>